package com.git.smp.entitydoc;


import java.util.List;


public class CallInfo {


    /* 新增调用 */
    public static final String TRANS_TYPE_NEW_CALL = "新增调用";
    /* 修改接口 */
    public static final String TRANS_TYPE_MODIFY_INTERFACE = "修改接口";
    /* 删除调用 */
    public static final String TRANS_TYPE_DELETE_CALL = "删除调用";

    private String serviceSysName;
    private List<InterfaceInfo> interfaceList;
    private String consumerSysName;
    private String transType;


    public CallInfo(String serviceSysName, List<InterfaceInfo> interfaceList, String consumerSysName, String transType) {
        this.serviceSysName = serviceSysName;
        this.interfaceList = interfaceList;
        this.consumerSysName = consumerSysName;
        this.transType = transType;
    }

    public CallInfo(String serviceSysName, List<InterfaceInfo> interfaceList, String consumerSysName) {
        this(serviceSysName, interfaceList, consumerSysName, TRANS_TYPE_NEW_CALL);
    }


    public String getCallInfoType() {
        switch (transType) {
            case TRANS_TYPE_MODIFY_INTERFACE:
                return "修改接口";
            case TRANS_TYPE_DELETE_CALL:
                return "删除调用";
            default:
                return "新增调用";
        }
    }

	public String getServiceSysName() {
		return serviceSysName;
	}

	public void setServiceSysName(String serviceSysName) {
		this.serviceSysName = serviceSysName;
	}

	public List<InterfaceInfo> getInterfaceList() {
		return interfaceList;
	}

	public void setInterfaceList(List<InterfaceInfo> interfaceList) {
		this.interfaceList = interfaceList;
	}

	public String getConsumerSysName() {
		return consumerSysName;
	}

	public void setConsumerSysName(String consumerSysName) {
		this.consumerSysName = consumerSysName;
	}

	public String getTransType() {
		return transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}
    
    
    
    
}
